home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / mklib.openstep < prev    next >
Text File  |  1998-12-15  |  972b  |  40 lines

  1. # Make a static OpenStep .a library file with libtool
  2.  
  3. #--identification------------------------------------------------------
  4.  
  5. # $Id: mklib.openstep,v 1.2 1998/06/01 00:47:59 brianp Exp $
  6.  
  7. # $Log: mklib.openstep,v $
  8. # Revision 1.2  1998/06/01 00:47:59  brianp
  9. # patched per Alexander Mai
  10. #
  11. # Revision 1.1  1998/03/24 00:42:58  brianp
  12. # Initial revision
  13. #
  14.  
  15. #--common--------------------------------------------------------------
  16.  
  17. # Usage:  mklib libname major minor file.o ...
  18. #
  19. # First argument is name of output library (LIBRARY)
  20. # Second arg is major version number (MAJOR)
  21. # Third arg is minor version number (MINOR)
  22. # Rest of arguments are object files (OBJECTS)
  23.  
  24. LIBRARY=$1
  25. shift 1
  26.  
  27. MAJOR=$1
  28. shift 1
  29.  
  30. MINOR=$1
  31. shift 1
  32.  
  33. OBJECTS=$*
  34.  
  35. #--platform-------------------------------------------------------------
  36.  
  37. libtool -static -o $LIBRARY - $OBJECTS
  38.  
  39. ####/bin/cc -dynamiclib -dynamic -compatibility_version 1 -current_version 1 -install_name $LIBRARY -o $LIBRARY $OBJECTS
  40.